import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Scanner;

public class Demo14 {
    public static void main(String[] args) throws IOException{
        try(InputStream inputStream = new FileInputStream("./text")){
            Scanner scanner = new Scanner(inputStream);

            while(scanner.hasNextInt()){
                System.out.println(scanner.nextInt());
            }
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
